/*
 * OpenParts
 * A dynamic-loading components framework for GWT
 * Copyright (C) 2011 Christophe Bouthier  [chris{AT}binary-gastronome{DOT}fr]
 *
 * This work is partially based on work I have done at INRIA (http://www.inria.fr) 
 * in the context of the Qualipso European Project (http://qualipso.org/),
 * The work done at INRIA is Copyright (C) 2006-2011 INRIA
 *
 * This work is distributed under the LGPL version 3
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License version 3
 * as published by the Free Software Foundation. See the GNU
 * Lesser General Public License in LGPL.txt for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package fr.openparts.OpenParts.test.gwt.dummyPart.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.Widget;

import fr.openparts.OpenParts.client.OPBinder;
import fr.openparts.OpenParts.client.OPParams;
import fr.openparts.OpenParts.client.OPSlotProxy;
import fr.openparts.OpenParts.client.annotations.OPServiceName;
import fr.openparts.OpenParts.client.annotations.OPViewFactory;

/**
 * Dummy part, to test simple view factory.
 * 
 * @author Christophe Bouthier [chris{AT}binary-gastronome{DOT}fr]
 * @creation.date 29 December 2009
 */
@OPServiceName("dummyService")
public final class DummyPartViewFactoryDouble {

    public interface DummyPartViewFactoryDoubleBinder extends OPBinder<DummyPartViewFactoryDouble> {}
    public static final DummyPartViewFactoryDoubleBinder binder = GWT.create(DummyPartViewFactoryDoubleBinder.class);

    /**
     * Dummy view factory
     * 
     * @param params
     *            the initialization parameters for the view
     * @param proxy
     *            proxy to the container slot
     * @return the view
     */
    @OPViewFactory(resourceName = "resourceName", actionName = "actionName")
    public final Widget viewFactory(final OPParams params, final OPSlotProxy proxy) {
        // nothing to do here
        return null;
    }
    
    /**
     * Dummy view factory 2
     * 
     * @param params
     *            the initialization parameters for the view
     * @param proxy
     *            proxy to the container slot
     * @return the view
     */
    @OPViewFactory(resourceName = "resourceName2", actionName = "actionName")
    public final Widget viewFactory2(final OPParams params, final OPSlotProxy proxy) {
        // nothing to do here
        return null;
    }

}
